package jdmx.library.da;



import jdmx.library.info.DbInfo;

import org.apache.commons.dbcp.BasicDataSource;


public class DatabaseMySql extends Database {

	@Override
	public void init(DbInfo dbInfo) {
        dataSource = new BasicDataSource();
        dataSource.setDriverClassName("com.mysql.jdbc.Driver");
        dataSource.setUsername(dbInfo.dbUsername);
        dataSource.setPassword(dbInfo.dbPassword);
        dataSource.setUrl("jdbc:mysql://" + dbInfo.dbServer + ":" + dbInfo.dbPort + "/" + dbInfo.dbName);
	}
}

           
       